﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/admin/Views/Shared/Create.Master"
    Inherits="System.Web.Mvc.ViewPage<Longtop.Web.SaleWeb.Admin.Sales.CreateModel>" %>

<asp:Content ContentPlaceHolderID="Scripts" runat="server" ID="Content2">

    <script type="text/javascript">
        $(function() {
            $('input[name$="Email"]').change(function() {
                $('input[name$="UserName"]').val($(this).val().split('@')[0]);
            });
        }
        );
       
    </script>

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <tr>
        <td>
        </td>
        <td>
            <%=Html.ValidationSummary(true) %>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(model => model.AccountRegisterModel.Email) %>
        </td>
        <td>
            <%= Html.TextBoxFor(model => model.AccountRegisterModel.Email)%>
            <%=Html.ValidationMessageFor(m => m.AccountRegisterModel.Email)%>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(model => model.Model.UserName)%>
        </td>
        <td>
            <%= Html.TextBoxFor(model => model.Model.UserName)%>
            <%=Html.ValidationMessageFor(m=>m.Model.UserName) %>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(model => model.AccountRegisterModel.Password) %>
        </td>
        <td>
            <%= Html.PasswordFor(model => model.AccountRegisterModel.Password) %>
            <%= Html.ValidationMessageFor(model => model.AccountRegisterModel.Password) %>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(model => model.Model.JoinDate) %>
        </td>
        <td>
            <%= Html.EditorFor(model => model.Model.JoinDate, "DatePicker", "joinDate")%>
            <%= Html.ValidationMessageFor(model => model.Model.JoinDate)%>
        </td>
    </tr>
</asp:Content>
